//
//  MBProgressHUD+PYAdd.h
//  IHome
//
//   Created by zhujizheng on 2020/2/18.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

@interface MBProgressHUD (PYAdd)
+ (void)py_showIndicatorWithText:(NSString *)text forView:(nullable UIView *)view;
+ (void)py_showText:(NSString *)text forView:(nullable UIView *)view;
+ (void)py_showText:(NSString *)text;

#pragma mark - 移除HUD
+ (void)py_hideHUDForView:(nullable UIView *)view;
+ (void)py_hide;

#pragma mark - 加载进度相关
+ (void)py_showProgressHUD:(float)percent text:(NSString *)text forView:(nullable UIView *)view;
+ (MBProgressHUD *)py_showProgressHUD:(float)percent
                      text:(NSString *)text
                   forView:(nullable UIView *)view
                      mode:(MBProgressHUDMode)mode
          shadowBackground:(BOOL)shadowBackground;
+ (void)py_hideProgressHUDForView:(nullable UIView *)view;
#pragma mark - 百分比进度
+ (void)py_showProgressString:(NSString *)progressString forView:(nullable UIView *)view;
+ (void)py_hideProgressStringForView:(nullable UIView *)view;
#pragma mark - 菊花进度
+ (void)py_showProgressIndicatorForView:(nullable UIView *)view;
+ (void)py_hideProgressIndicatorForView:(nullable UIView *)view;

#pragma mark - 成功/失败的图片提示
+ (void)py_showSuccessViewWithText:(NSString *)text forView:(nullable UIView *)view;
+ (void)py_showFailureViewWithText:(NSString *)text forView:(nullable UIView *)view;
@end

NS_ASSUME_NONNULL_END
